<?php

namespace app\api\validate;

use think\Validate;

class General extends Validate {
    
    /**
     * 规则定义
     * @var array
     */
    protected $rule = [
        'secretId'    => 'require|length:20',
        'secretKey'   => 'require|length:35',
    ];
    
    /**
     * 提示信息定义
     * @var array
     */
    protected $message = [
        'secretId'    => '请输入20位secretId参数',
        'secretKey'   => '请输入35位secretKey参数',
    ];
    
    /**
     * 场景定义
     * @var array
     */
    public $scene = [
        'getAccessToken' => ['secretId', 'secretKey'],
    ];
}